package com.app.common.glide

import android.widget.ImageView
import com.bumptech.glide.load.engine.DiskCacheStrategy

fun ImageView.loadImage(path: String) {
    GlideApp.with(this).load(path).centerCrop().into(this)
}

fun ImageView.loadImagePreview(path: String) {
    GlideApp.with(this).load(path).diskCacheStrategy(DiskCacheStrategy.RESOURCE).into(this)
}